package com.south.base.service.impl;

import com.south.base.service.HelloWorldAspectService;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

/**
 * @author Administrator
 * @date 2019/11/28 16:17
 */
@Service
public class HelloWorldAspectServiceImpl implements HelloWorldAspectService {
    @Override
    public String hello(String name) {
        if (StringUtils.isEmpty(name)) {
            throw new IllegalArgumentException("name is empty");
        }
        return "hello world!";
    }
}
